FROM node:14-alpine AS build
WORKDIR /app
ENV REACT_APP_API_HOST="api.dsstudio.tech/q3fs"

COPY package.json yarn.lock tsconfig.json ./
RUN yarn install
RUN yarn global add serve

COPY . ./
RUN yarn build
EXPOSE 5000
CMD ["serve", "-s", "build"]
